package com.xiaoshuidi.cloud.module.bpm.api.task.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class BpmTaskRespDTO {
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 结束时间
     */
    private LocalDateTime endTime;
    /**
     * 持续时间
     */
    private Long durationInMillis;
    /**
     * 任务结果
     * PROCESS(1, "处理中"),
     * APPROVE(2, "通过"),
     * REJECT(3, "不通过"),
     * CANCEL(4, "已取消"),
     */
    private Integer result;
    /**
     * 审批意见
     */
    private String reason;

    /**
     * 节点名称
     */
    private String name;

    private List<User> assigneeUsers;
    @Data
    public static class User {
        private Long id;
        private String nickname;
        private Long deptId;
        private String deptName;
    }
}
